

export const option = {
  height: 'auto',
  calcHeight: 'auto',
  searchShow: true,
  searchMenuSpan: 6,
  stripe: true,
  headerAlign: 'center',
  tip: false,
  tree: true,
  border: true,
  index: true,
  indexLabel: '序号',
  selection: true,
  viewBtn:true,
  align: 'center',
  column: [
    {
      label: '主键',
      prop: 'id',
      hide: true,
      addDisplay: false,
      editDisplay: false
    },
    {
      label: '名称',
      width: 120,
      prop: 'pollName',
      search: true,
      rules: [
        { required: true, message: '请输入名称', trigger: 'blur' },
        { max: 32, message: '长度在 32 个字符', trigger: 'blur' }
      ]
    },
    {
      label: '驱动类',
      prop: 'driverClassName',
      rules: [
        { required: true, message: '请输入驱动类', trigger: 'blur' }
      ]
    },
    {
      label: 'jdbcUrl',
      prop: 'url',
      type: 'textarea',
      span: 24,
      row: true,
      minRows: 2,
      overHidden: true,
      rules: [
        { required: true, message: '请输入jdbcUrl', trigger: 'blur' }
      ]
    },
    {
      label: '用户名',
      prop: 'username',
      rules: [
        { required: true, message: '请输入用户名', trigger: 'blur' },
        { max: 32, message: '长度在 32 个字符', trigger: 'blur' }
      ]
    },
    {
      label: '密码',
      prop: 'password',
      rules: [
        { required: true, message: '请输入密码', trigger: 'blur' },
        { max: 32, message: '长度在 32 个字符', trigger: 'blur' }
      ]
    },
    {
      label: '更新时间',
      prop: 'updateTime',
      type: 'datetime',
      format: 'yyyy-MM-dd',
      overHidden: true,
      addDisplay: false,
      editDisplay: false
    }
  ]
}
